import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";

import { ProjectMetricsDto } from "./project-metrics.dto";

export class ProjectSummaryDto {
  @ApiProperty({ example: "proj_01J9ZWG2HBVX9T7K52V8" })
  id!: string;

  @ApiProperty({ example: "Demo Project" })
  name!: string;

  @ApiPropertyOptional({ description: "项目描述" })
  description?: string | null;

  @ApiPropertyOptional({ description: "项目负责人" })
  managerName?: string | null;

  @ApiPropertyOptional({ description: "当月目标产值" })
  monthlyTarget?: number | null;

  @ApiPropertyOptional({ description: "当前产值" })
  currentValue?: number | null;

  @ApiPropertyOptional({ description: "当月进度百分比" })
  progressPercentage?: number | null;

  @ApiProperty({ type: () => ProjectMetricsDto })
  metrics!: ProjectMetricsDto;
}
